home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Utilities / Text / OzTeX 1.9 / Dvips / dvips.txt < prev    next >
Text File  |  1993-07-04  |  16KB  |  334 lines

  1.  
  2.  
  3.  
  4. DVIPS(1)                                                 DVIPS(1)
  5.  
  6.  
  7. NAME
  8.        dvips - convert a TeX DVI file to PostScript
  9.  
  10. SYNOPSIS
  11.        dvips [ options ] file[.dvi]
  12.  
  13. DESCRIPTION
  14.        The  program dvips takes a DVI file file[.dvi] produced by
  15.        TeX (or by some other processor such as GFtoDVI) and  con-
  16.        verts  it  to  PostScript,  normally  sending  the  result
  17.        directly to the laserprinter.  The DVI file may be  speci-
  18.        fied without the .dvi extension.  Fonts used may either be
  19.        resident in the printer or defined as bitmaps in PK files,
  20.        or a `virtual' combination of both.  If the MakeTeXPK pro-
  21.        gram is installed, dvips will automatically  invoke  META-
  22.        FONT to generate fonts that don't already exist.
  23.  
  24.        For more information, see the manual dvips.tex in the TEX-
  25.        INPUTS directory.  The manual can be printed with the fol-
  26.        lowing commands:
  27.  
  28.               tex dvips
  29.               dvips dvips -o dvips.ps
  30.               lpr dvips.ps
  31.  
  32.  
  33. OPTIONS
  34.        -a     Conserve  memory  by  making  three passes over the
  35.               .dvi file instead of two  and  only  loading  those
  36.               characters actually used.  Generally only useful on
  37.               machines with a very limited amount of memory, like
  38.               some PCs.
  39.  
  40.        -A     Print  only  odd  pages  (TeX  pages,  not sequence
  41.               pages).
  42.  
  43.        -b num Generate num copies of each page,  but  duplicating
  44.               the  page  body  rather  than  using the #numcopies
  45.               option.  This can be useful in conjunction  with  a
  46.               header file setting char92bop-hook to do color sep-
  47.               arations or other neat tricks.
  48.  
  49.        -B     Print only even  pages  (TeX  pages,  not  sequence
  50.               pages).
  51.  
  52.        -c num Generate  num  copies of every page.  Default is 1.
  53.               (For collated copies, see the -C option below.)
  54.  
  55.        -C num Create num copies, but collated (by replicating the
  56.               data  in  the PostScript file).  Slower than the -c
  57.               option, but easier on the hands,  and  faster  than
  58.               resubmitting  the  same  PostScript  file  multiple
  59.               times.
  60.  
  61.        -d num Set the debug flags.  This  is  intended  only  for
  62.               emergencies  or  for  unusual  fact-finding expedi-
  63.               tions; it will work only if dvips has been compiled
  64.               with  the  DEBUG  option.   For more information on
  65.               possible values see section 15 of dvips.tex.
  66.  
  67.        -D num Set the resolution in dpi (dots per inch)  to  num.
  68.               This  affects  the  choice of bitmap fonts that are
  69.               loaded and also the positioning of letters in resi-
  70.               dent  PostScript  fonts.  Must  be  between  10 and
  71.               10000.  This affects both the horizontal and verti-
  72.               cal  resolution.   If  a high resolution (something
  73.               greater than 400 dpi, say) is selected, the -Z flag
  74.               should probably also be used.
  75.  
  76.        -e num Make  sure  that  each  character is placed at most
  77.               this  many  pixels  from  its  `true'   resolution-
  78.               independent position on the page. The default value
  79.               of this parameter is resolution dependent.   Allow-
  80.               ing  individual  characters  to  `drift' from their
  81.               correctly rounded positions by a few pixels,  while
  82.               regaining  the  true  position  at the beginning of
  83.               each new word, improves the spacing of  letters  in
  84.               words.
  85.  
  86.        -E     makes dvips attempt to generate an EPSF file with a
  87.               tight bounding box.  This only  works  on  one-page
  88.               files,  and  it only looks at marks made by charac-
  89.               ters and rules, not by any included  graphics.   In
  90.               addition,  it  gets  the glyph metrics from the tfm
  91.               file, so characters that lie outside their  enclos-
  92.               ing  tfm  box  may  confuse  it.   In addition, the
  93.               bounding box might be a bit too loose if the  char-
  94.               acter  glyph  has  significant  left  or right side
  95.               bearings.  Nonetheless, this option works well  for
  96.               creating  small  EPSF files for equations or tables
  97.               or the like.  (Note, of course, that  dvips  output
  98.               is resolution dependent and thus does not make very
  99.               good EPSF files, especially if the images are to be
  100.               scaled;  use  these EPSF files with a great deal of
  101.               care.)
  102.  
  103.        -f     Read the .dvi file from standard  input  and  write
  104.               the  PostScript  to  standard output.  The standard
  105.               input must be seekable, so it cannot be a pipe.  If
  106.               you  must  use  a  pipe,  write a shell script that
  107.               copies the pipe output to a temporary file and then
  108.               points  dvips  at this file.  This option also dis-
  109.               ables the automatic reading of the PRINTER environ-
  110.               ment  variable, and turns off the automatic sending
  111.               of control D if it was turned on with the -F option
  112.               or  in  the  configuration  file; use -F after this
  113.               option if you want both.
  114.  
  115.        -F     Causes Control-D (ASCII code 4) to be  appended  as
  116.               the  very  last  character  of the PostScript file.
  117.               This is useful when dvips is  driving  the  printer
  118.               directly  instead  of working through a spooler, as
  119.               is common on extremely small systems.  NOTE! DO NOT
  120.               USE THIS OPTION!
  121.  
  122.        -h name
  123.               Prepend  file  name  as  an additional header file.
  124.               (However, if the name is simply  `-'  suppress  all
  125.               header  files  from  the output.)  This header file
  126.               gets added to the PostScript userdict.
  127.  
  128.        -i     Make each section be a separate file.   Under  cer-
  129.               tain  circumstances,  dvips will split the document
  130.               up into `sections' to be  processed  independently;
  131.               this  is most often done for memory reasons.  Using
  132.               this option tells dvips to place each section  into
  133.               a  separate  file;  the  new file names are created
  134.               replacing the suffix of the  supplied  output  file
  135.               name by a three-digit sequence number.  This option
  136.               is most often  used  in  conjunction  with  the  -S
  137.               option  which  sets  the  maximum section length in
  138.               pages.  For instance, some phototypesetters  cannot
  139.               print  more than ten or so consecutive pages before
  140.               running out of steam; these options can be used  to
  141.               automatically  split a book into ten-page sections,
  142.               each to its own file.
  143.  
  144.        -k     Print crop marks.  This option increases the  paper
  145.               size  (which  should  be  specified,  either with a
  146.               paper size special or with the -T option) by a half
  147.               inch in each dimension.  It translates each page by
  148.               a quarter inch and draws  cross-style  crop  marks.
  149.               It  is  mostly useful with typesetters that can set
  150.               the page size automatically.
  151.  
  152.        -K     This option causes comments in included  PostScript
  153.               graphics,  font  files,  and headers to be removed.
  154.               This is sometimes necessary to get around  bugs  in
  155.               spoolers  or  PostScript  post-processing programs.
  156.               Specifically, the %%Page comments,  when  left  in,
  157.               often  cause  difficulties.   Use  of this flag can
  158.               cause some included graphics  to  fail,  since  the
  159.               PostScript  header  macros from some software pack-
  160.               ages read portions of  the  input  stream  line  by
  161.               line,  searching  for  a  particular comment.  This
  162.               option has  been  turned  off  by  default  because
  163.               PostScript  previewers  and spoolers have been get-
  164.               ting better.
  165.  
  166.        -l num The last page printed will be the  first  one  num-
  167.               bered num Default is the last page in the document.
  168.               If the num is prefixed by an equals sign,  then  it
  169.               (and any argument to the -p option) is treated as a
  170.               sequence number, rather than  a  value  to  compare
  171.               with  char92 count0 values.  Thus, using -l =9 will
  172.               end with the ninth page of the document, no  matter
  173.               what the pages are actually numbered.
  174.  
  175.        -m     Specify manual feed for printer.
  176.  
  177.        -M     Turns  off  the automatic font generation facility.
  178.               If any fonts are missing, commands to generate  the
  179.               fonts  are appended to the file missfont.log in the
  180.               current directory; this file can then  be  executed
  181.               and deleted to create the missing fonts.
  182.  
  183.        -n num At  most  num  pages  will  be  printed. Default is
  184.               100000.
  185.  
  186.        -N     Turns off structured comments; this might be neces-
  187.               sary   on   some  systems  that  try  to  interpret
  188.               PostScript comments  in  weird  ways,  or  on  some
  189.               PostScript printers.  Old versions of TranScript in
  190.               particular  cannot   handle   modern   Encapsulated
  191.               PostScript.
  192.  
  193.        -o name
  194.               The  output  will  be  sent to file name If no file
  195.               name is given, the default name  is  file.ps  where
  196.               the  .dvi  file was called file.dvi; if this option
  197.               isn't given, any default in the configuration  file
  198.               is  used.   If  the first character of the supplied
  199.               output file name is an exclamation mark,  then  the
  200.               remainder  will  be  used  as an argument to popen;
  201.               thus, specifying !lpr as the output file will auto-
  202.               matically queue the file for printing.  This option
  203.               also disables the automatic reading of the  PRINTER
  204.               environment  variable,  and turns off the automatic
  205.               sending of control D if it was turned on  with  the
  206.               -F  option  or  in  the  configuration file; use -F
  207.               after this option if you want both.
  208.  
  209.        -O offset
  210.               Move the origin by a certain amount.  The offset is
  211.               a  comma-separated  pair  of  dimensions,  such  as
  212.               .1in,-.3cm (in the same syntax used in  the  paper-
  213.               size  special).   The origin of the page is shifted
  214.               from the default position (of one  inch  down,  one
  215.               inch to the right from the upper left corner of the
  216.               paper) by this amount.
  217.  
  218.        -p num The first page printed will be the first  one  num-
  219.               bered  num.  Default is the first page in the docu-
  220.               ment.  If the num is prefixed by  an  equals  sign,
  221.               then  it  (and  any  argument  to the -l option) is
  222.               treated as a sequence number, rather than  a  value
  223.               to  compare with char92 count0 values.  Thus, using
  224.               -p =3 will start with the third page of  the  docu-
  225.               ment,  no  matter  what the pages are actually num-
  226.               bered.
  227.  
  228.        -pp pagelist
  229.               A comma-separated list of pages  and  ranges  (a-b)
  230.               may  be  given, which will be interpreted as char92
  231.               count0 values.  Pages not  specified  will  not  be
  232.               printed.   Multiple -pp options may be specified or
  233.               all pages and page ranges can be specified with one
  234.               -pp option.
  235.  
  236.        -P printername
  237.               Sets  up  the  output  for the appropriate printer.
  238.               This   is   implemented   by   reading   in    con-
  239.               fig.printername  ,  which  can  then set the output
  240.               pipe (as in, !lpr -Pprintername as well as the font
  241.               paths  and  any  other  config.ps defaults for that
  242.               printer only.  Note that config.ps is  read  before
  243.               config.printername In addition, another file called
  244.               ~/.dvipsrc is searched for immediately  after  con-
  245.               fig.ps;  this  file  is intended for user defaults.
  246.               If no -P command is given, the environment variable
  247.               PRINTER is checked.  If that variable exists, and a
  248.               corresponding configuration file exists, that  con-
  249.               figuration file is read in.
  250.  
  251.        -q     Run  in quiet mode.  Don't chatter about pages con-
  252.               verted, etc.; report nothing but errors to standard
  253.               error.
  254.  
  255.        -r     Stack  pages  in  reverse  order.  Normally, page 1
  256.               will be printed first.
  257.  
  258.        -s     Causes the entire global output to be enclosed in a
  259.               save/restore  pair.  This causes the file to not be
  260.               truly conformant, and is thus not recommended,  but
  261.               is  useful  if you are driving the printer directly
  262.               and don't care too much about  the  portability  of
  263.               the output.
  264.  
  265.        -S num Set  the maximum number of pages in each `section'.
  266.               This option is  most  commonly  used  with  the  -i
  267.               option;  see  that  documentation  above  for  more
  268.               information.
  269.  
  270.        -t papertype
  271.               This sets the paper type to papertype.  The  paper-
  272.               type  should be defined in one of the configuration
  273.               files, along with the appropriate  code  to  select
  274.               it.   (Currently known types include letter, legal,
  275.               ledger, a4, a3, ) You can  also  specify  -t  land-
  276.               scape,  which rotates a document by 90 degrees.  To
  277.               rotate a document whose size is not letter, you can
  278.               use  the  -t  option twice, once for the page size,
  279.               and once for landscape.  The upper left  corner  of
  280.               each  page in the .dvi file is placed one inch from
  281.               the left and one inch from the top.   Use  of  this
  282.               option  is  highly  dependent  on the configuration
  283.               file.  Note that executing  the  letter  or  a4  or
  284.               other PostScript operators cause the document to be
  285.               nonconforming and can cause it not to print on cer-
  286.               tain printers, so the paper size should not execute
  287.               such an operator if at all possible.
  288.  
  289.        -T offset
  290.               Set the paper size to the given pair of dimensions.
  291.               This  option  takes its arguments in the same style
  292.               as -O.  It overrides any paper size special in  the
  293.               dvi file.
  294.  
  295.        -U     Disable  a  PostScript  virtual memory saving opti-
  296.               mization that stores the character metric  informa-
  297.               tion  in  the same string that is used to store the
  298.               bitmap information.  This is  only  necessary  when
  299.               driving  the Xerox 4045 PostScript interpreter.  It
  300.               is caused by a bug in that interpreter that results
  301.               in  `garbage' on the bottom of each character.  Not
  302.               recommended unless you must drive this printer.
  303.  
  304.        -x num Set the magnification ratio to num /1000. Overrides
  305.               the magnification specified in the .dvi file.  Must
  306.               be between 10 and 100000.
  307.  
  308.        -X num Set the horizontal resolution in dots per  inch  to
  309.               num.
  310.  
  311.        -Y num Set  the  vertical  resolution  in dots per inch to
  312.               num.
  313.  
  314.        -Z     Causes bitmapped fonts to be compressed before they
  315.               are  downloaded,  thereby  reducing the size of the
  316.               PostScript  font-downloading  information.    Espe-
  317.               cially  useful  at  high  resolutions  or when very
  318.               large fonts are  used.   Will  slow  down  printing
  319.               somewhat,    especially    on   early   68000-based
  320.               PostScript printers.
  321.  
  322. SEE ALSO
  323.        mf(1), afm2tfm(1), tex(1), latex(1), lpr(1), dvips.tex.
  324.  
  325. DIAGNOSTICS
  326. NOTES
  327.        PostScript is a  registered  trademark  of  Adobe  Systems
  328.        Incorporated.
  329.  
  330. AUTHOR
  331.        Tomas  Rokicki <rokicki@cs.stanford.edu>; extended to vir-
  332.        tual fonts by Don Knuth.
  333.  
  334.